import { http } from "@/utils/http";
// import { baseUrlApi } from "@/store/utils";

type Result = {
  success: boolean;
  data: Array<any>;
};

export const getAsyncRoutes = () => {
  return http.request<Result>("get", "/get-async-routes");
};

// 获取后端菜单列表
// export const getAsyncRoutes = () => {
//   return http.request<Result>("get", baseUrlApi("system/menu/getMenuList"));
// };
